·
<script setup>
import { ref, reactive, watch } from "vue"
const props = defineProps(['visiable', 'choose'])
const emit = defineEmits(['close', 'sendOut'])
const acWrap = ref()
const isShow = ref(false)
const form = reactive({})
const close = () => {
  emit('close')
}
const gotoSendOut = () => {
  emit('sendOut')
}
watch(() => props.visiable, (val) => {
  if (!val) Object.assign(form, {
    businessName: '', //商家名
    loginName: '', // 系统账户
    address: "", // 地址
    bank: '', // 开户银行
    bankAccount: '', //银行账户
    bankAccountName: "", // 银行户名
    descript: "", //描述
  })
  else Object.assign(form, { ...props.choose })
  isShow.value = val
})
</script>

<template>
  <el-dialog v-model="isShow" title="查看问题" width="600" @close="close">
    <div class="ac-wrap" ref="acWrap">
      <p>{{ form.feedBackMessage }}</p>
    </div>
    <template #footer>
      <div class="dialog-footer">
        <el-button @click="isShow = false">确认</el-button>
        <el-button type="primary" @click="gotoSendOut">
          确认并发货
        </el-button>
      </div>
    </template>
  </el-dialog>
</template>

<style scoped>
.ac-wrap {
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  position: relative;
  background-color: #fff;
  overflow: auto;
  padding: 0 20px;
}
</style>